<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
<title>所有商品</title>

<!-- Bootstrap -->
<link
	href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
	rel="stylesheet">
	<script type="text/javascript">
		function toaddpage() {
			location.href = "../goods/toaddpage";
		}
	</script>
</head>
<body>
	<jsp:include page="../top.jsp"></jsp:include>
	<div class="container">

		<div class="row clearfix">
			<div class="col-md-12 column">
				<div class="page-header">
					<a class="btn btn-default btn-block btn-warning" href="../goods/toaddpage">添加新商品</a>
				</div>
			</div>
		</div>
		<div class="row clearfix">
			<div class="col-md-12 column">
				<div class="row">
					<c:forEach items="${ allgoods}" var="goods">
						<div class="col-md-4">
							<div class="thumbnail">
								<div class="caption">
									<h3>${goods.goods_name}</h3>
									<%-- <p>${goods.goods_name}</p> --%>
									<p>
										<a class="btn btn-primary"
											href="../goods/editgoods?goods_id=${ goods.goods_id }">操作</a>
										<a class="btn"
											href="../goods/getallgoodsinfo?goods_id=${ goods.goods_id }">详细信息</a>
									</p>
								</div>
							</div>
						</div>
					</c:forEach>
				</div>
			</div>
		</div>
	</div>

	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script
		src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>